use tauri;
use crate::models::state::{ConnectionConfig, ConnectionResult};

#[tauri::command]
pub async fn connect_sip(config: ConnectionConfig) -> Result<ConnectionResult, String> {
    crate::services::sip::connect_sip(config).await
}

#[tauri::command]
pub async fn disconnect_sip() -> Result<ConnectionResult, String> {
    crate::services::sip::disconnect_sip().await
}

#[tauri::command]
pub async fn get_connection_status() -> Result<ConnectionResult, String> {
    crate::services::sip::get_connection_status().await
}

